<!DOCTYPE html>
<html>
<head>
    <meta charset="{CHARSET}">
    <title>Login</title>
    <link rel="stylesheet" href="/static/css/bootstrap.css"/>
    <style>
            body {
				background-color: #CCC;
			}
			#content {
				background-color: white;
				margin-top:2em;
				padding-top:2em;
                padding-bottom:2em;
			}

    </style>
</head>
<body>
<div class="container" id="content">
    {% if messages %}
    {% for message in messages %}
    <div class="alert {%if message.tags %} alert-{{ message.tags }}{% endif %}" role="alert">{{ message }}</div>
    {% endfor %}
    <hr/>
    {% endif %}
    <form role="form" action="" method="post">
        <div class="form-group">
            <label for="name">账户名</label>
            <input name="username" class="form-control" placeholder="请输入账户名"/>
        </div>
        <div class="form-group">
            <label for="name">密码</label>
            <input name="password" class="form-control" placeholder="请输入密码"/>
        </div>
        <button type="submit" class="btn btn-default">登录</button>
        <a href="/register" class="btn btn-info" style="float:right">去注册</a>
        {% csrf_token %}
    </form>
</div>
</body>
</html>